3.691 \(\int \frac {\cot ^7(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx\)

Optimal. Leaf size=73 \[ \frac {\cot ^6(c+d x)}{6 a d}-\frac {\csc ^7(c+d x)}{7 a d}+\frac {2 \csc ^5(c+d x)}{5 a d}-\frac {\csc ^3(c+d x)}{3 a d} \]

[Out]

1/6*cot(d*x+c)^6/a/d-1/3*csc(d*x+c)^3/a/d+2/5*csc(d*x+c)^5/a/d-1/7*csc(d*x+c)^7/a/d

________________________________________________________________________________________

Rubi [A]  time = 0.14, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2835, 2606, 270, 2607, 30} \[ \frac {\cot ^6(c+d x)}{6 a d}-\frac {\csc ^7(c+d x)}{7 a d}+\frac {2 \csc ^5(c+d x)}{5 a d}-\frac {\csc ^3(c+d x)}{3 a d} \]

Antiderivative was successfully verified.

[In]

Int[(Cot[c + d*x]^7*Csc[c + d*x])/(a + a*Sin[c + d*x]),x]

[Out]

Cot[c + d*x]^6/(6*a*d) - Csc[c + d*x]^3/(3*a*d) + (2*Csc[c + d*x]^5)/(5*a*d) - Csc[c + d*x]^7/(7*a*d)

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 270

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*(a + b*x^n)^p,
 x], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0]

Rule 2606

Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[a/f, Subst[
Int[(a*x)^(m - 1)*(-1 + x^2)^((n - 1)/2), x], x, Sec[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n -
1)/2] &&  !(IntegerQ[m/2] && LtQ[0, m, n + 1])

Rule 2607

Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[1/f, Subst[Int[(b*x)
^n*(1 + x^2)^(m/2 - 1), x], x, Tan[e + f*x]], x] /; FreeQ[{b, e, f, n}, x] && IntegerQ[m/2] &&  !(IntegerQ[(n
- 1)/2] && LtQ[0, n, m - 1])

Rule 2835

Int[(cos[(e_.) + (f_.)*(x_)]^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.))/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]
), x_Symbol] :> Dist[1/a, Int[Cos[e + f*x]^(p - 2)*(d*Sin[e + f*x])^n, x], x] - Dist[1/(b*d), Int[Cos[e + f*x]
^(p - 2)*(d*Sin[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f, n, p}, x] && IntegerQ[(p - 1)/2] && EqQ[a^2
 - b^2, 0] && IntegerQ[n] && (LtQ[0, n, (p + 1)/2] || (LeQ[p, -n] && LtQ[-n, 2*p - 3]) || (GtQ[n, 0] && LeQ[n,
 -p]))

Rubi steps

\begin {align*} \int \frac {\cot ^7(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx &=-\frac {\int \cot ^5(c+d x) \csc ^2(c+d x) \, dx}{a}+\frac {\int \cot ^5(c+d x) \csc ^3(c+d x) \, dx}{a}\\ &=\frac {\operatorname {Subst}\left (\int x^5 \, dx,x,-\cot (c+d x)\right )}{a d}-\frac {\operatorname {Subst}\left (\int x^2 \left (-1+x^2\right )^2 \, dx,x,\csc (c+d x)\right )}{a d}\\ &=\frac {\cot ^6(c+d x)}{6 a d}-\frac {\operatorname {Subst}\left (\int \left (x^2-2 x^4+x^6\right ) \, dx,x,\csc (c+d x)\right )}{a d}\\ &=\frac {\cot ^6(c+d x)}{6 a d}-\frac {\csc ^3(c+d x)}{3 a d}+\frac {2 \csc ^5(c+d x)}{5 a d}-\frac {\csc ^7(c+d x)}{7 a d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.16, size = 68, normalized size = 0.93 \[ \frac {\csc ^2(c+d x) \left (-30 \csc ^5(c+d x)+35 \csc ^4(c+d x)+84 \csc ^3(c+d x)-105 \csc ^2(c+d x)-70 \csc (c+d x)+105\right )}{210 a d} \]

Antiderivative was successfully verified.

[In]

Integrate[(Cot[c + d*x]^7*Csc[c + d*x])/(a + a*Sin[c + d*x]),x]

[Out]

(Csc[c + d*x]^2*(105 - 70*Csc[c + d*x] - 105*Csc[c + d*x]^2 + 84*Csc[c + d*x]^3 + 35*Csc[c + d*x]^4 - 30*Csc[c
 + d*x]^5))/(210*a*d)

________________________________________________________________________________________

fricas [A]  time = 0.47, size = 104, normalized size = 1.42 \[ \frac {70 \, \cos \left (d x + c\right )^{4} - 56 \, \cos \left (d x + c\right )^{2} - 35 \, {\left (3 \, \cos \left (d x + c\right )^{4} - 3 \, \cos \left (d x + c\right )^{2} + 1\right )} \sin \left (d x + c\right ) + 16}{210 \, {\left (a d \cos \left (d x + c\right )^{6} - 3 \, a d \cos \left (d x + c\right )^{4} + 3 \, a d \cos \left (d x + c\right )^{2} - a d\right )} \sin \left (d x + c\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^7*csc(d*x+c)^8/(a+a*sin(d*x+c)),x, algorithm="fricas")

[Out]

1/210*(70*cos(d*x + c)^4 - 56*cos(d*x + c)^2 - 35*(3*cos(d*x + c)^4 - 3*cos(d*x + c)^2 + 1)*sin(d*x + c) + 16)
/((a*d*cos(d*x + c)^6 - 3*a*d*cos(d*x + c)^4 + 3*a*d*cos(d*x + c)^2 - a*d)*sin(d*x + c))

________________________________________________________________________________________

giac [A]  time = 0.24, size = 66, normalized size = 0.90 \[ \frac {105 \, \sin \left (d x + c\right )^{5} - 70 \, \sin \left (d x + c\right )^{4} - 105 \, \sin \left (d x + c\right )^{3} + 84 \, \sin \left (d x + c\right )^{2} + 35 \, \sin \left (d x + c\right ) - 30}{210 \, a d \sin \left (d x + c\right )^{7}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^7*csc(d*x+c)^8/(a+a*sin(d*x+c)),x, algorithm="giac")

[Out]

1/210*(105*sin(d*x + c)^5 - 70*sin(d*x + c)^4 - 105*sin(d*x + c)^3 + 84*sin(d*x + c)^2 + 35*sin(d*x + c) - 30)
/(a*d*sin(d*x + c)^7)

________________________________________________________________________________________

maple [A]  time = 0.52, size = 69, normalized size = 0.95 \[ \frac {\frac {1}{6 \sin \left (d x +c \right )^{6}}+\frac {2}{5 \sin \left (d x +c \right )^{5}}-\frac {1}{7 \sin \left (d x +c \right )^{7}}+\frac {1}{2 \sin \left (d x +c \right )^{2}}-\frac {1}{2 \sin \left (d x +c \right )^{4}}-\frac {1}{3 \sin \left (d x +c \right )^{3}}}{d a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)^7*csc(d*x+c)^8/(a+a*sin(d*x+c)),x)

[Out]

1/d/a*(1/6/sin(d*x+c)^6+2/5/sin(d*x+c)^5-1/7/sin(d*x+c)^7+1/2/sin(d*x+c)^2-1/2/sin(d*x+c)^4-1/3/sin(d*x+c)^3)

________________________________________________________________________________________

maxima [A]  time = 0.38, size = 66, normalized size = 0.90 \[ \frac {105 \, \sin \left (d x + c\right )^{5} - 70 \, \sin \left (d x + c\right )^{4} - 105 \, \sin \left (d x + c\right )^{3} + 84 \, \sin \left (d x + c\right )^{2} + 35 \, \sin \left (d x + c\right ) - 30}{210 \, a d \sin \left (d x + c\right )^{7}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^7*csc(d*x+c)^8/(a+a*sin(d*x+c)),x, algorithm="maxima")

[Out]

1/210*(105*sin(d*x + c)^5 - 70*sin(d*x + c)^4 - 105*sin(d*x + c)^3 + 84*sin(d*x + c)^2 + 35*sin(d*x + c) - 30)
/(a*d*sin(d*x + c)^7)

________________________________________________________________________________________

mupad [B]  time = 8.97, size = 66, normalized size = 0.90 \[ \frac {105\,{\sin \left (c+d\,x\right )}^5-70\,{\sin \left (c+d\,x\right )}^4-105\,{\sin \left (c+d\,x\right )}^3+84\,{\sin \left (c+d\,x\right )}^2+35\,\sin \left (c+d\,x\right )-30}{210\,a\,d\,{\sin \left (c+d\,x\right )}^7} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)^7/(sin(c + d*x)^8*(a + a*sin(c + d*x))),x)

[Out]

(35*sin(c + d*x) + 84*sin(c + d*x)^2 - 105*sin(c + d*x)^3 - 70*sin(c + d*x)^4 + 105*sin(c + d*x)^5 - 30)/(210*
a*d*sin(c + d*x)^7)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)**7*csc(d*x+c)**8/(a+a*sin(d*x+c)),x)

[Out]

Timed out

________________________________________________________________________________________